home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
pc
/
files
/
dsp
/
56000tar.z
/
56000tar
/
56000
/
fntns
/
exp2.hlp
< prev
next >
Wrap
Text File
|
1991-11-26
|
760b
|
25 lines
Name: EXP2.ASM
Type: Assembler Macro
Version: 1.0
Last Change: 26-Jan-87
This macro will take the exponential of a number base 2.
2**(x) = .1713425 x*x + .6674432 x + .9979554
This polynomial will give approximately 8 significant bits of accuracy.
This is valid for -1<= x <=0.
The input value is put into x0, the output value is returned in register
A. Register R1 initially points to the coefficients in y memory in the
order:a1,a2,a0.
R1
|
v
y:.6674432,.1713425,.9979554
a1 a2 a0
Benchmarks for this macro is 4 cycles, 4 instructions.
The library program EXP2T demonstrates how to use the EXP2 macro.